from selenium.webdriver import Firefox
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.support import expected_conditions as expected
from selenium.webdriver.support.wait import WebDriverWait
from run import config

options = Options()
options.add_argument(config.get('crawler', 'ARGUMENT'))
driver = Firefox(executable_path=config.get('crawler', 'GECKODRIVER_PATH'),
                 firefox_options=options)
wait = WebDriverWait(driver, timeout=config.getint('crawler', 'WAITDRIVER'))
